<?php
/**
 * Created By Project
 * Author: Tina
 * Copyright：Tina
 * Source Code:Tina
 * Explain：I shall not authorize for any other commercial purposes, law breakers must be prosecuted.
 */
namespace Home\Controller;
use Think\Controller;

class ArtController extends BaseController {

	/**
	 * 本控制器主要用于index7模板详情页数据处理
	 */

	/**
	 * 列表页
	 *所有的
	 *
	 */
	public function index($rtype){
		//var_dump('aa'.$rtype);die;
		$User = M("article");
		if($rtype == 1){
			$where1 = array('menuid' =>4672 ,'typeid' =>633,'rtype' =>'1');
			$list = $User->where($where1)->select();
		}


		if($rtype == 2){
			$where2 = array('menuid' =>4672 ,'typeid' =>633,'rtype' =>'2');
			$list = $User->where($where2)->select();
		}


		if($rtype == 3){
			$where3 = array('menuid' =>4672 ,'typeid' =>633,'rtype' =>'3');
			$list = $User->where($where3)->select();
		}

		if($rtype == 4){
			$where4 = array('menuid' =>4672 ,'typeid' =>633,'rtype' =>'4');
			$list = $User->where($where4)->select();
		}


		if($rtype == 5){
			$where5 = array('menuid' =>4672 ,'typeid' =>633,'rtype' =>'5');
			$list = $User->where($where5)->select();
		}

		if($rtype == 6){
			$where6 = array('menuid' =>4672 ,'typeid' =>633,'rtype' =>'6');
			$list = $User->where($where6)->select();
		}
		$this->assign('list',$list );
		$this->display();
	}




	/**
	 * 详情页
	 */
	public function article($arid){
		
		$article = M('article');
		$where = array('id'=>$arid);
		$info = $article ->where($where)->find();
		$this->assign('info', $info);
		$this->display();
				
	}



}